package com.bwie.mapper;

import com.bwie.pojo.Surplus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.vo.SurplusVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* @author 61630
* @description 针对表【tb_surplus】的数据库操作Mapper
* @createDate 2024-08-06 14:27:07
* @Entity com.bwie.pojo.Surplus
*/
@Mapper
public interface SurplusMapper extends BaseMapper<Surplus> {

    @Select("select brand_number from tb_brand where id=#{modelId}")
    Integer selectLastNum(Integer modelId);
    @Update("update tb_brand set brand_number=#{num} where id=#{modelId}")
    void subtractNum(HashMap<String, Object> map);
}




